-- returns the x/y coordinate of the given character
x, y = g_charXY(0)
x2, y2 = g_charXY(1)
print(x..", "..y)
if x == x2 and y == y2 then
	print("he has caught you!")
	g_end()
end
letter = g_mapGet(x, y)
print(letter)
if letter == '!' then
	print("YOU LOSE!")
	g_end()
end
--letter = '!'